package com.wolf.etl.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * Created by tommy's father on 2017/8/17.
 */
@TableInfo(value = "etl_define")
public class EtlDefineModel {

    @IdInfo
    private Long id;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    @FieldInfo(value = "code")
    private String code;

    @FieldInfo(value = "name")
    private String name;

    @FieldInfo(value = "source_data_source_id")
    private Long source_data_source_id;

    @FieldInfo(value = "target_data_source_id")
    private Long target_data_source_id;

    @FieldInfo(value = "fetch_max_count")
    private int fetch_max_count;

    @FieldInfo(value = "is_dynamic_store")
    private int is_dynamic_store;

    @FieldInfo(value = "remark")
    private String remark;

    @FieldInfo(value = "status")
    private int status;

    @FieldInfo("load_balance_strategy")
    private String load_balance_strategy;

    @FieldInfo("record_count")
    private Long record_count;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSource_data_source_id() {
        return source_data_source_id;
    }

    public void setSource_data_source_id(Long source_data_source_id) {
        this.source_data_source_id = source_data_source_id;
    }

    public Long getTarget_data_source_id() {
        return target_data_source_id;
    }

    public void setTarget_data_source_id(Long target_data_source_id) {
        this.target_data_source_id = target_data_source_id;
    }

    public int getFetch_max_count() {
        return fetch_max_count;
    }

    public void setFetch_max_count(int fetch_max_count) {
        this.fetch_max_count = fetch_max_count;
    }

    public int getIs_dynamic_store() {
        return is_dynamic_store;
    }

    public void setIs_dynamic_store(int is_dynamic_store) {
        this.is_dynamic_store = is_dynamic_store;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }

    public String getLoad_balance_strategy() {
        return load_balance_strategy;
    }

    public void setLoad_balance_strategy(String load_balance_strategy) {
        this.load_balance_strategy = load_balance_strategy;
    }

    public Long getRecord_count() {
        return record_count;
    }

    public void setRecord_count(Long record_count) {
        this.record_count = record_count;
    }
}
